import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:package_model/package_model.dart';

/**
 *
 * @ProjectName:    person_model_project
 * @ClassName:      main_coach_adapter
 * @Description:    dart类作用描述
 * @Author:         孙浩
 * @QQ:             243280864
 * @CreateDate:     2021/1/31 11:38 PM
 */
class MainCoachAdapter extends BaseAdapter<String> {
  MainCoachAdapter(int index, String data) : super(index, data);

  @override
  buildChild(data) => ClipRRect(
        borderRadius: BorderRadius.circular(24.w),
        child: Stack(children: [ConstrainedBox(
          constraints: BoxConstraints.expand(),
          child: Image.network(
              "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1564429550,1659123573&fm=26&gp=0.jpg"),
        ),Positioned(child: Frost(child: Container(
          padding: EdgeInsets.symmetric(horizontal: 20.w,vertical: 16.w),
          child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [
            Text("健身教练"),
            Row()
          ],),
        )) ,left: 0,right: 0,bottom: 0,)],) ,
      );
}
